public class GUIModifier
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
GUIModifier()
Non instantiable Constructor
|
Modifier and Type | Method and Description |
---|---|
static int[] |
getSelectedTableItemIndexes()
Get Index's of Selected Table Items
|
protected static void |
modifyItemFields()
Modify the Item combobox items when an item in the Field combobox is selected
|
static javax.swing.JPanel |
populateMetadataPanel(java.lang.String[] labels)
Populate Metadata Panel
|
static java.awt.Component |
setCellColours(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column,
java.awt.Component c)
Set Table Cell Colours
|
static void |
setImageInScrollPane(javax.swing.JTable tempTable,
int moveVal,
boolean manualRowSelection)
Set Image In Scroll Pane when a row in the table is selected
|
static void |
updateMetadataItemStatus(int index)
Update Status of Metadata Item in the Table
|
static void |
updateMetadataPanelStatus(int row)
Update Metadata Panel Status
|
static void |
zoomIn()
Zoom into the current image in the image panel
|
static void |
zoomOut()
Zoom out of the current image in the image panel
|
protected static void modifyItemFields()
public static javax.swing.JPanel populateMetadataPanel(java.lang.String[] labels)
labels
- String[] String array containing metadata labelspublic static java.awt.Component setCellColours(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column, java.awt.Component c)
table
- JTablevalue
- ObjectisSelected
- booleanhasFocus
- booleanrow
- intcolumn
- intc
- Componentpublic static void setImageInScrollPane(javax.swing.JTable tempTable, int moveVal, boolean manualRowSelection) throws java.lang.Exception
tempTable
- JTable table being selectedmoveVal
- int integer amount to move the selected rowmanualRowSelection
- boolean set to true to use moveVal to manually move the row selectedjava.lang.Exception
public static void zoomIn() throws java.lang.Exception
java.lang.Exception
- incase there is no imagepublic static void zoomOut() throws java.lang.Exception
java.lang.Exception
- incase there is no imagepublic static void updateMetadataPanelStatus(int row)
row
- int row in table corresponding to metadata panelpublic static void updateMetadataItemStatus(int index)
index
- int index of itempublic static int[] getSelectedTableItemIndexes()